<template>
	<view class="container">
		<view class="item" @click="onItemTopSearch">
			热搜
		</view>
		<view class="item" @click="onItemNews">
			新闻
		</view>
		<view class="item" @click="onItemOilPrice">
			油价
		</view>
		<view class="item" @click="onItemWord">
			每日一言
		</view>
		<view class="item" @click="onItemChickenSoup">
			毒鸡汤
		</view>
		<view class="item" @click="onItemDayMovie">
			每日一部电影
		</view>
		<view class="item" @click="onItemExpressage">
			快递查询
		</view>
		<view class="item" @click="onItemHarassmentNumber">
			骚扰号码查询
		</view>
		<view class="item" @click="onItemQrcode">
			二维码生成
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			//热搜
			onItemTopSearch() {
				uni.navigateTo({
					url: '/pages/topsearch/topsearch'
				})
			},
			//新闻
			onItemNews() {
				uni.navigateTo({
					url: '/pages/news/news'
				})
			},
			//油价
			onItemOilPrice() {
				uni.navigateTo({
					url: '/pages/oilprice/oilprice'
				})
			},
			//每日一言
			onItemWord() {
				uni.navigateTo({
					url: '/pages/word/word'
				})
			},
			//毒鸡汤
			onItemChickenSoup() {
				uni.navigateTo({
					url: '/pages/chickensoup/chickensoup'
				})
			},
			//每日一部电影
			onItemDayMovie() {
				uni.navigateTo({
					url: '/pages/daymovie/daymovie'
				})
			},
			//快递查询
			onItemExpressage() {
				uni.navigateTo({
					url: '/pages/expressage/expressage'
				})
			},
			//骚扰号码查询
			onItemHarassmentNumber() {
				uni.navigateTo({
					url: '/pages/harassmentnumber/harassmentnumber'
				})
			},
			//二维码生成
			onItemQrcode() {
				uni.navigateTo({
					url: '/pages/qrcode/qrcode'
				})
			}
		}
	}
</script>

<style lang="scss">
	.container {
		// width: 100%;//100vw
		height: 90vh;
		display: flex;
		flex-wrap: wrap;
		margin-left: 10px;
		margin-right: 10px;
		margin-top: 10px;

		.item {
			width: 33.33%;
			height: calc(90vh/3);
			box-sizing: border-box;
			border: 1px solid gainsboro;
			padding: 10px;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
</style>